package util;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class TextUtil {
	public static void main(String[] args) {
		String path = System.getProperty("user.dir")
				+ "\\src\\org\\bluedash\\tryssl\\Server.java";
		try {
			readFile(path);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	private static void readFile(String filePath) throws IOException {
		FileReader fr = new FileReader(new File(filePath));
		BufferedReader br = new BufferedReader(fr);
		String str;
		int i = 0;
		while (br.read() > 0) {
			str = br.readLine();
			str = str.replaceAll("[0-9]", "");
			if(str.indexOf(".") == 0){
				str = str.substring(1);
			}
			System.out.println(str);
		}
	}
}
